package com.ruoyi.device.mapper;

import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.device.domain.HatDevice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.device.domain.req.hatdevice.HatDeviceReq;
import com.ruoyi.device.domain.resp.hatdevice.HatDeviceResp;
import com.ruoyi.device.domain.resp.hatdevice.HatDeviceSearchResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 11452
* @description 针对表【hat_device】的数据库操作Mapper
* @createDate 2023-11-24 17:14:58
* @Entity com.ruoyi.device.domain.HatDevice
*/
public interface HatDeviceMapper extends BaseMapper<HatDevice> {


    /**
     * 分页查询
     * @param req
     * @return
     */
    List<HatDeviceSearchResp> search(@Param(value = "req") HatDeviceReq req);

    List<HatDeviceResp> searchUnBind();


    SysDictData findByDictDataLabel(String label);

    SysDictData findDictDataByValue(String value);

    /**
     * 根据获取区域设备信息
     * @param orgCode
     * @return
     */
    List<HatDeviceResp> searchDeviceByOrgCode(String orgCode);
}




